const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false, // 取消严格模式
  pluginOptions: {
    electronBuilder: {
      customFileProtocol: "./",
      preload:'src/preload.js'
    }
  },
  transpileDependencies: true,
  devServer: {
    client: {
      overlay: false
    },
    proxy: {
      '/event': {
        target: 'http://192.168.0.103:8080', // 你想要代理的目标主机
        changeOrigin: true, // 允许跨域
        pathRewrite: {
          '^/event': '',  // 重写路径，如果你的API路径与请求路径不完全匹配
        },
      },
    },
  }
})
